<div id ="tableDiv" style="overflow:auto;" >

<#if formField.hidden?? && formField.hidden=="1">
	<input type=hidden name="fieldMap['${field.name}'].id"  <#if businessInstanceField?? && businessInstanceField.id??>value="${businessInstanceField.id}"</#if>>
	<input type=hidden name="fieldMap['${field.name}'].field.id"  value="${formField.field.id}">
	<input type=hidden id=${field.name} name="fieldMap['${field.name}'].value" <#if businessInstanceField??>value="${businessInstanceField.value}"</#if>></input>
<#else>
	<input type=hidden name="fieldMap['${field.name}'].id"  <#if businessInstanceField?? && businessInstanceField.id??>value="${businessInstanceField.id}"</#if>>
	<input type=hidden name="fieldMap['${field.name}'].field.id"  value="${formField.field.id}">
	<input type=hidden name="${field.name}" id="valid${field.name}" <#if planTerget_list?? && planTerget_list?size gt 0>value="${planTerget_list?size}"</#if>>
	<#if !formField.readonly?? || formField.readonly=="0">
		<table cellspacing="1" cellpadding="0" class="listviewTable" width="100%">
		<tr class="listviewTR">
			<td class="listviewTD" align="right" >
				<font color="red">*</font>年份:
			</td>
			<td class="listviewTD" align="left"  colspan="7">
				&nbsp;${businessInstanceField.value?default('')}
			</td>
		</tr>
		
			<#if planTerget_list??>
			<#assign index=0>
				<#list planTerget_list as planTarget>
					<#if planTarget.planTargetD?? && planTarget.planTargetD.formula??>
						<tr class="listviewTR">
							<input type="hidden" id="fieldMap['${field.name}'].planTargetList[${index}].year" name="fieldMap['${field.name}'].planTargetList[${index}].year" >
							<input type="hidden" name="fieldMap['${field.name}'].planTargetList[${index}].planTargetD.id" value='${planTarget.planTargetD.id?default('')}' >
							<td class="listviewTD" align="right"  >
								指标类型:
							</td>
							<td class="listviewTD" align="left" >
								&nbsp;${planTarget.planTargetD.targetTypeName?default('')}
							</td>
							<td class="listviewTD" align="right"  >
								指标名称:
							</td>
							<td class="listviewTD" align="left"  >
								&nbsp;${planTarget.planTargetD.targetName?default('')}
							</td>
							<td class="listviewTD" align="right"  >
								原始值A:
							</td>
							<td class="listviewTD" align="left"  >
								<input type="text"  datarule="number" datarulejson='{"displayName":"原始值A","dataType":"number","precision":"6","isRequired":"0","length":"8"}'  name="fieldMap['${field.name}'].planTargetList[${index}].originalValueA" value="${planTarget.originalA?default('')}"  style="width:120px;">
							</td>
							<td class="listviewTD" align="right"  >
								原始值B:
							</td>
							<td class="listviewTD" align="left" >
								<input type="text"   datarule="number" datarulejson='{"displayName":"原始值B","dataType":"number","precision":"6","isRequired":"0","length":"8"}'  name="fieldMap['${field.name}'].planTargetList[${index}].originalValueB" value="${planTarget.originalB?default('')}"   style="width:120px;">
							</td>
						</tr>
					<#else>
						<tr class="listviewTR">
							<input type="hidden" id="fieldMap['${field.name}'].planTargetList[${index}].year" name="fieldMap['${field.name}'].planTargetList[${index}].year" >
							<input type="hidden" name="fieldMap['${field.name}'].planTargetList[${index}].planTargetD.id" value='${planTarget.planTargetD.id?default('')}' >
							<td class="listviewTD" align="right" >
								指标类型:
							</td>
							<td class="listviewTD" align="left" >
								&nbsp;${planTarget.planTargetD.targetTypeName?default('')}
							</td>
							<td class="listviewTD" align="right"  >
								指标名称:
							</td>
							<td class="listviewTD" align="left"  >
								&nbsp;${planTarget.planTargetD.targetName?default('')}
							</td>
							<td class="listviewTD" align="right" >
								实际值:
							</td>
							<td class="listviewTD" align="left"   colspan="3">
								<input type="text"  datarule="numberext" datarulejson='{"displayName":"实际值","dataType":"number","precision":"6","isRequired":"0","length":"8"}'  name="fieldMap['${field.name}'].planTargetList[${index}].actualValue"  value="${planTarget.actual?default('')}"  style="width:120px;">
								${planTarget.planTargetD.unit?default('')}
							</td>
							
						</tr>
					</#if>
					<#assign index=index+1>
				</#list>
			</#if>
		</table>
	</#if>
</#if>

</div>

<script>
$(window).resize(historyMothLayout);
	function historyMothLayout(){
		$("#tableDiv").css("width",window.document.body.clientWidth-10);
		$("#tableDiv").css("height",window.document.body.clientHeight-68);
	}
	$(function(){
		historyMothLayout();
	})
</script>